-- GENERATED SPELL FOR [Burning Blade Summoner] --


function spell0_4668(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20825,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4668', 3000, 1)
end

function spell1_4668(pUnit, Event) --@Summon Imp,Self--
pUnit:FullCastSpellOnTarget(11939,pUnit)
pUnit:RegisterEvent('Sorts_4668', 562, 1)
end

function Sorts_4668(pUnit, Event)
local choix_sorts_4668 = math.random(0, 1)
if choix_sorts_4668 == 0 then
pUnit:RegisterEvent('spell0_4668', 1, 1)
end
if choix_sorts_4668 == 1 then
pUnit:RegisterEvent('spell1_4668', 1, 1)
end
end

function mob4668_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4668', math.random(1500, 3000), 1)
end

function mob4668_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4668_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4668_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4668, 1, 'mob4668_Action')
RegisterUnitEvent(4668, 2, 'mob4668_Leave')
RegisterUnitEvent(4668, 3, 'mob4668_Kill')
RegisterUnitEvent(4668, 4, 'mob4668_Die')
